const getProxy = require('./proxy.config');
const { PROXY } = process.env;
const target = PROXY === 'MOCK' ? getProxy('mock') : getProxy('dev');
module.exports = {
  open: false,
  port: 8080,
  proxy: {
    '/api': {
      target,
      changeOrigin: true,
      pathRewrite: {
        '^/api': '',
      },
    },
  },
};
